package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.AttrResp;
import com.atguigu.gulimall.product.vo.AttrResponseVo;
import com.atguigu.gulimall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author tr
 * @email tr@gmail.com
 * @date 2023-04-18 23:50:05
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryAttrInfo(Map<String, Object> params, Long catelogId,String attrType);

    AttrResponseVo getAttr(Long attrId);

    void updateCascade(AttrVo attr);

    PageUtils RelationNoAttr(Map<String, Object> params, Long attrGroupId);

    List<AttrEntity> getRelationAttr(Long attrGroupId);

    List<Long> getSearchAttrId(List<Long> attrIds);
}

